package com.steven.collection;

import java.lang.System;
import java.util.Comparator;

public class MyComparator implements Comparator<Student> {

	@Override
	public int compare(Student o1, Student o2) {
		
		if (o1.age!=o2.age) {
			return   new Integer(o1.age).compareTo(new Integer(o2.age));
		//	return o2.age-o1.age;
		}
        System.out.print(2);
		 
		return 0;
	}

}
